package ai.people.platform.archives.mapper;

import ai.people.netmon.framework.domain.archives.entity.InformationScoreDetails;
import ai.people.netmon.framework.domain.archives.vo.InformationDataBasicFieldVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author ligua
* @description 针对表【information_score_details(积分明细表)】的数据库操作Mapper
* @createDate 2022-06-06 16:11:38
* @Entity ai.people.netmon.framework.domain.archives.entity.InformationScoreDetails
*/
public interface InformationScoreDetailsMapper extends BaseMapper<InformationScoreDetails> {

    /**
     * 查询列表通过用户id和数据列表
     *
     * @param userId   用户id
     * @param dataList 数据列表
     * @return {@link List}<{@link InformationScoreDetails}>
     */
    List<InformationScoreDetails> selectListByUserIdAndDataList(@Param("userId") Long userId, @Param("dataList") List<InformationDataBasicFieldVO> dataList);

    /**
     * 已经消费积分总和
     *
     * @param userId 用户id
     * @return {@link Long}
     */
    Long selectSpeedScoreSum(Long userId);
}




